<?php
require dirname ( __FILE__ ) . '/common.php';

$gm = new GroupModel ();
echo $gm->getTotalCount ();

$list = $gm->getGroups ( 1 );

echo '<ul>', "\n";
foreach ( $list as $map ) {
	echo "<li>{$map->id}|{$map->name}</li>\n";
}

print_r($_SERVER);
echo '<br/>' . $_SERVER ['HTTP_REFERER'];
?>
<a href="http://ns.vvivii.com/demo.php">试验</a>